const http = require('http')

const server = http.createServer((req, res) => {
  // console.log(req.headers)
  res.end('连接成功')
})

server.listen(8000, () =>{
  console.log('服务器启动成功')
})